//
//  IconViewController.h
//  IconMaster
//
//  Created by 为为 on 13-5-27.
//  Copyright (c) 2013年 为为. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CIconView.h"
#import "SpriteView.h"

@class IconViewController;

typedef void(^IconViewControllerEventBlock)(IconViewController* controller);

@interface IconViewController : UIViewController
{
    NSMutableDictionary     *controllerDict;
    UISegmentedControl		*segmentContrl;
    NSMutableArray			*segmentDictArray;
	CIconView				*iconView;
    BOOL                    changed;
}
@property (nonatomic, strong) UIImage* iconImage;
@property (nonatomic, copy) IconViewControllerEventBlock wrongButtonPressedBlock;
@property (nonatomic, copy) IconViewControllerEventBlock rightButtonPressedBlock;

@property (weak, nonatomic) IBOutlet UIImageView *iconViewPlaceholder;
@property (weak, nonatomic) IBOutlet SpriteContainerView *spriteContainer;

- (IBAction)wrongButtonPressed:(id)sender;
- (IBAction)rightButtonPressed:(id)sender;

- (id)initWithIconView:(CIconView*)aIconView;
- (void)resetIconView:(CIconView*)aIconView;


@end
